import fetch from 'common/src/utils/fetch'
const api_name = 'api/welcomeservice'
const group_name = 'examinationLevel'

export default{
  'pageUrl': `${api_name}/${group_name}/list`,
  save(data){
    return fetch({
      url:`${api_name}/${group_name}`,
      method:'post',
      data:data
    })
  },

  findById(id){
    return fetch({
      url:`${api_name}/${group_name}/${id}`,
      method:'get'
    })
  },

  updateById(data){
    return fetch({
      url:`${api_name}/${group_name}`,
      method:'put',
      data:data
    })
  },
  deleteById(id){
    var data = {ids : id}
    return fetch({
      url:`${api_name}/${group_name}`,
      method:'delete',
      data:data
    })
  },
  updateSwitch(data){
    return fetch({
      url:`${api_name}/${group_name}/switch`,
      method:'put',
      data:data
    })
  },
  getfaceClientPath(data){
    return fetch({
      url:`${api_name}/scheduling/faceClient/path?workType=${data}`,
      method:'get',
    })
  },
  uploadClient(data, param){
    return fetch({
      url:`${api_name}/scheduling/faceClient/upload?path=${data}&workType=${param}`,
      method:'post',
    })
  },

}

